

package cn.shengchao.examstar.distribute.infrastrure.mapper;

import cn.shengchao.examstar.distribute.infrastrure.po.DistributeOrderTaskSale;
import cn.shengchao.examstar.distribute.infrastrure.query.DistributeAmountQuery;
import cn.shengchao.examstar.distribute.infrastrure.query.SaleAmountQuery;
import cn.shengchao.examstar.distribute.infrastrure.query.DistributeUserSaleDetailQuery;
import cn.shengchao.examstar.distribute.infrastrure.vo.DistributeSale;
import cn.shengchao.examstar.distribute.infrastrure.vo.DistributeSaleUserGroup;
import cn.shengchao.examstar.rpc.uddsys.resp.DistributeUserProfitDetailVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DistributeOrderTaskSaleMapper extends BaseMapper<DistributeOrderTaskSale> {
    /**
     * 获取销售额
     *
     * @param saleAmountQuery 查询条件
     * @return 销售额
     */
    DistributeSale getSaleAmount(@Param("query") SaleAmountQuery saleAmountQuery);


    List<DistributeSaleUserGroup> getDistributeUserGroupSaleAmount(@Param("query") SaleAmountQuery saleAmountQuery);


    List<DistributeUserProfitDetailVo> getDistributeUserProfitDetailList(@Param("query") DistributeUserSaleDetailQuery distributeUserSaleDetailQuery);

    List<DistributeUserProfitDetailVo> getDistributeEmployeeContributeDetailList(@Param("query")DistributeUserSaleDetailQuery distributeUserSaleDetailQuery);

    DistributeSaleUserGroup getSaleAmountForDistributeUser(@Param("query")DistributeAmountQuery saleAmountQuery);
}